package router

import (
	"database-platform/handler"
	"github.com/gin-gonic/gin"
)

func InitClusterRoutes(e *gin.Engine) *gin.RouterGroup {
	clusterApi := e.Group("/api/v1/clusters")

	clusterApi.GET("", handler.ListClusterHandler)
	clusterApi.GET("/:id", handler.RetrieveClusterHandler)
	clusterApi.POST("", handler.InsertClusterHandler)
	clusterApi.PUT("/:id", handler.UpdateClusterHandler)
	clusterApi.DELETE("/:id", handler.DeleteClusterHandler)

	return clusterApi
}
